package com.own.business.comment.entity.query;

import com.own.component.common.base.entity.BaseQuery;
import com.own.constant.ConstantBeanSuffix;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * CommentQuery
 *
 * @author chenxueli
 * @date 2023-07-03 14:15:52
 */
@Schema(title = "评论" + ConstantBeanSuffix.QUERY)
@Getter
@Setter
@ToString
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class CommentQuery extends BaseQuery implements Serializable {

    @Schema(title = "评论用户id")
    private Long userId;

    @Schema(title = "评论目标id")
    private Long targetId;

    @Schema(title = "主要内容")
    private String content;

    @Schema(title = "评论上级id")
    private Long commentId;

    @Schema(title = "最初的评论id")
    private Long rootCommentId;

    @Schema(title = "评论等级")
    private Integer level;

}
